﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContextService.cs" company="">
//   Copyright (c) 2010/2011 All Right Reserved
// </copyright>
// <summary>
//   This class provides one context for all repositories in one request. So you can attach objects between repositories. This class is implemented as singleton
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace iBuproModel.Repositories
{
    public class ContextService
    {
        static readonly Entities instance = new Entities();

        static ContextService()
        {
        }

        ContextService()
        {
        }

        public static Entities GetInstance
        {
            get
            {
                return instance;
            }
        }
    }
}
